package cn.wolfcode.crm.service;

import cn.wolfcode.crm.domain.Stock;
import cn.wolfcode.crm.query.PageResult;
import cn.wolfcode.crm.query.QueryObject;

import java.math.BigDecimal;
import java.util.List;

public interface IStockService {

    void insert(Stock entity);

    void delete(Long id);

    void update(Stock entity);

    Stock get(Long id);

    List<Stock> list();

    /**
     * 商品分类分页查询
     * @param qo 查询条件
     * @return
     */
    PageResult query(QueryObject qo);

    void productNumberUpdate(String productName, BigDecimal salecount);

    List<Stock> productNumberSelect(String productName);
}
